package com.plugin.core.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 缴费通知实体类
 * 
 * @author mark
 * @date 2025-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("elder_message_notice")
@Schema(name = "ElderMessageNotice", description = "缴费通知表")
public class ElderMessage implements Serializable {

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "接收人ID")
    @TableField("elder_id")
    private Long elderId;

    @Schema(description = "账单ID")
    @TableField("billing_id")
    private Long billingId;

    @Schema(description = "房间ID")
    @TableField("room_id")
    private Long roomId;

    @Schema(description = "通知方式：1-短信，2-微信，3-邮件")
    @TableField("notification_method")
    private Integer notificationMethod;

    @Schema(description = "状态：1-待发送，2-已发送，3-发送失败")
    @TableField("status")
    private Integer status;

    @Schema(description = "发送时间")
    @TableField("send_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendTime;

    @Schema(description = "消息类型: 1-缴费类;2-活动折扣类;3-系统类;4-护工交接班类")
    @TableField("mssage_type")
    private String messageType;
}
